
<template>
  <div>
    <h1>请选择你喜欢的栏目！</h1>
    <span v-for="item in arr " :key="item" >
      {{item}}
      <input type="checkbox" v-model="ische" :value='item'>
      </span>
  <ul>
    <li v-for="item in ische" :key="item" >
      {{item }}
    </li>
  </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      ische: []

    }
  },

  created () {

  },

  methods: {
    // btn (item) {
    //   console.log(item)
    //   console.log(this.ische)
    // }
  }
}
</script>

<style scoped lang='less'>

</style>
